from django.shortcuts import render,render_to_response
from django.template import loader,Context
from django.http import HttpResponse
from index.models import fk1, fk2, fk3, fk4, fk5, fk6, kuaijiexx
# Create your views here.
def show_kuaijie(request):
	link = kuaijiexx.objects.order_by('-id')[:1]
	fk_1 = fk1.objects.order_by('-id')[:1]
	fk_2 = fk2.objects.order_by('-id')[:1]
	fk_3 = fk3.objects.order_by('-id')[:1]
	fk_4 = fk4.objects.order_by('-id')[:1]
	fk_5 = fk5.objects.order_by('-id')[:1]
	fk_6 = fk6.objects.order_by('-id')[:1]
	return render_to_response("index.html", {"link": link,"fk_1":fk_1,"fk_2":fk_2,"fk_3":fk_3,"fk_4":fk_4,"fk_5":fk_5,"fk_6":fk_6})
